package com.hoshiicloud.user.entity.company;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 机构类型
 * </p>
 *
 * @author WGJ
 * @since 2019-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrganizationType extends CompanyBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 机构类型-分类   1-sass机构 2-租户机构 3-平台机构
     */
    @NotNull(message = "机构类型-分类不能为空")
    @ApiModelProperty(name = "orgType", value = "机构类型-分类", required = true, dataType = "java.lang.Integer", example = "1")
    private Integer orgType;

    /**
     * 机构类型代码
     */
    @NotNull(message = "机构类型代码不能为空")
    @ApiModelProperty(name = "orgCode", value = "机构类型代码", required = true, dataType = "java.lang.String", example = "1001")
    private String orgCode;

    /**
     * 机构类型名称
     */
    @NotNull(message = "机构类型名称不能为空")
    @ApiModelProperty(name = "orgName", value = "机构类型名称", required = true, dataType = "java.lang.String", example = "sass机构")
    private String orgName;

    /**
     * 是否可用
     */
    @ApiModelProperty(name = "enabled", value = "是否可用", required = true, dataType = "java.lang.Integer", example = "0", hidden = true)
    private Integer enabled;

}
